define(["block"], function(Block){
    
    return function(spriteBuffer){
        
        this.createBlock = function(sign){
            var block; 
            if(sign == '#'){
                block = new Block( spriteBuffer.getSprite(360,0,32,32) );
                block.isUnbreakable = false;
                block.hitPoints = 1;
                block.score = 10;
                block.isVisible = true;
                block.isCollidable = block.isVisible;
                return block;                
            }
            if(sign == '*'){
                block = new Block( spriteBuffer.getSprite(80,0,32,32) );
                block.isUnbreakable = true;
                block.hitPoints = -1;
                block.score = 0;
                block.isVisible = true;
                block.isCollidable = block.isVisible;
                return block;                
            }
            else{
                block = new Block( null );  
                block.isUnbreakable = false;
                block.h = 32;
                block.w = 32;
                block.isVisible = false;
                block.isCollidable = block.isVisible;
                return block;
            }
        };
    };
    
});